package com.loong.life.model;

import com.loong.common.mybatis.entity.BaseEntity;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "phone_charge_record")
public class PhoneChargeRecord extends BaseEntity {
    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 手机号码
     */
    @Column(name = "phone_number")
    private String phoneNumber;

    /**
     * 订单编号
     */
    @Column(name = "order_num")
    private String orderNum;

    /**
     * 充值费用
     */
    private BigDecimal money;

    /**
     * 代理商id
     */
    @Column(name = "agent_id")
    private Long agentId;

    /**
     * 产品id
     */
    @Column(name = "product_id")
    private Long productId;

    /**
     * 充值状态(1支付成功未充值，2充值中，3充值成功，4充值失败，5已退款)
     */
    @Column(name = "charge_status")
    private Integer chargeStatus;

    /**
     * 充值类型(0话费充值,1流量充值,2短信充值)
     */
    @Column(name = "charge_type")
    private Integer chargeType;

    /**
     * 付款方式
     */
    @Column(name = "paid_type")
    private Integer paidType;
}